{include file="header.tpl" jsload="ajax" jsload1="tinymce" jsload3="lightbox" stage="index" report_print_css=true}
{include file="tabsmenue-reports.tpl" desktab="active"}

<div id="content-left">
	
	<div id="content-left-in">
		
		<div class="report">
		
			{* Display System messages *}
			<div class="infowin_left" style="display:none;" id="systemmsg">
				
				{if $mode == "projectadded"}
				<span class="info_in_green">
					<img src="templates/standard/images/symbols/projects.png" alt="" />
					{#projectwasadded#}
				</span>
				{/if}
	
				{*for async display*}
				<span id = "closed" style = "display:none;" class="info_in_green">
					<img src="templates/standard/images/symbols/projects.png" alt="" />
					{#projectwasclosed#}
				</span>
				
				<span id="deleted" style="display:none;" class="info_in_red">
					<img src="templates/standard/images/symbols/projects.png" alt="" />
					{#projectwasdeleted#}
				</span>
				
			</div>
			
			{literal}
			<script type="text/javascript">
			systemMsg('systemmsg');
			</script>
			{/literal}
			
			<h1>
				{$report_name} <span>/ {#overview#}</span> 
			</h1>
			
			{if $show_save_option}
			<form action="managereports.php" method="post" id="form-save-report">
				<input type="hidden" name="action" id="action" value="save">
				<input type="hidden" name="name" value="{$name}">
				<input type="hidden" name="company_id" value="{$company_id}">
				<input type="hidden" name="date" value="{$date}">
				<input type="hidden" name="date_end" value="{$date_end}">
				<input type="hidden" name="project_status" value="{$project_status}">
				<input type="hidden" name="project_id" value="{$project_id}">
				<input type="hidden" name="milestone_status" value="{$milestone_status}">
				<input type="hidden" name="milestone_id" value="{$milestone_id}">
				<input type="hidden" name="project_files" value="{$project_files}">
				<button type="submit" name="savereport" id="savereport">{#savereport#}</button>
			</form>
			{/if}
			
			<button type="button" name="print_report" id="print_report" onclick="javascript:window.print();">{#print#}</button>
			
			<div class="clearfix"></div>
			
			<div class="content-spacer"></div>
			
			{*Report*}
			{if $report}
			{include file="reportprint.tpl"}
			{/if}
		
			<div class="content-spacer"></div>
		
		</div>
		
	</div>
	
</div>

<div style="display:none;">
	<div id="dialog-report-message" title="{#reports#}">
		<p>
			<span class="ui-icon ui-icon-info" style="float: left; margin: 0 7px 50px 0;"></span>
			<span class="dialog-msg"></span>
		</p>
	</div>
</div>

{include file="sidebar-a.tpl"}
{include file="footer.tpl"}